package com.example.demo.dao;

import com.example.demo.entity.LevelBean;
import com.example.demo.entity.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: demo
 * @ClassName LevelDao
 * @description:
 * @author: xtf
 * @create: YEAR−{MONTH}-DAY{HOUR}:01
 * @Version 1.0
 **/


@Mapper
public interface LevelDao {
    Integer insert(LevelBean userBean);

    Integer edit(LevelBean userBean);

    Integer del(Integer id);

    LevelBean getOneById(Integer id);


    List<LevelBean> getPage(
            @Param("jump") Integer jump,
            @Param("pageSize") Integer pageSize,
            @Param("name") String name,
            @Param("sortOrder") String sortOrder
    );

    Integer getCount(
            @Param("name") String name
    );

}